Halting Problem is closely related with reduction.
Problem; Given
Language:
A reduction from A(A over
Proof:
(1) compute
(2) run
(3) output the result
A set is countable if it is finite or it is equinumerous with
Let
(1) A is countable
(2)
(3) there exists some way to enumerate
enumerate all the strings in
Let
Let
Suppose that
The language in
Since
Give the definition of
构造 Deduction f("M""w") = on input u, run M on w.
那么有两种情况:
思路:
构造 f("M") = "M" "M*",同时 M* 满足对于所有的输入都停机,比如 on input u, halt
对
Rice's theorem
Proof: Make a reduction from
(1) If
construct f("M""w") = on input
step1 run
step2 run
(2) If
transform the the problem from
operator | recursive | recursive enumerable |
---|---|---|
√ | √ | |
√ | √ | |
√ | × | |
√ | √ | |
√ | √ |
According to the Lemma, because
We say a TM
⇒
for
construct
⇐
for
construct
Let
We say M lexicographically enumerate
⇐
construct
M' =
⇒
construct
⇒ Given
M = on input
⇐ Given
assume: (1)
后面证明就省略了...